package com.crm.system.controller.contractReviewManager;

import com.crm.common.model.DataResponse;
import com.crm.common.model.DhPageInfo;
import com.crm.common.model.DhResponse;
import com.crm.common.model.Enum.ResponseCodeEnum;
import com.crm.model.qo.customerManager.CustomerOrderBackMoneyQO;
import com.crm.model.vo.customerManager.CustomerOrderBackMoneyVO;
import com.crm.system.service.contractReviewManager.RefundReviewService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 退款审核
 * @Author renshaorong
 * @Date 2021/8/26 
 */
@RestController
@RequestMapping("/refundReview")
@Slf4j
public class RefundReviewController {

    @Autowired
    private RefundReviewService refundReviewService;

    /**
     * 审核管理--合同审核列表
     * @author yincuimei
     * @return
     */
    @PostMapping("/selectContractReviewFormList")
    public DataResponse selectContractReviewFormList(@RequestParam(value = "pageIndex", required = true) Integer pageIndex,//页码
                                                     @RequestParam(value = "pageSize", required = true) Integer pageSize,//分页大小
                                                     CustomerOrderBackMoneyQO customerOrderBackMoneyQO//查询条件
    ){
        DhPageInfo<CustomerOrderBackMoneyVO> contractReviewFormVODhPageInfo = refundReviewService.selectRefundReviewList(customerOrderBackMoneyQO,pageIndex,pageSize);
        return new DhResponse(ResponseCodeEnum.OK.getResponseCode(),contractReviewFormVODhPageInfo);
    }

}
